<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		this.$mz
			.checkSession()
			.then(res => {
				console.log(res);
			})
			.catch(err => {
				uni.removeStorageSync('userInfo')
				uni.removeStorageSync('userId')
				return;
			});
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
page {
	background-color: #f5f5f5;
}
</style>

<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import 'uview-ui/index.scss';
</style>
